// 基于template/src/widgets/\{{appEntities}}/\{{ctrls@TREEEXPBAR}}-tree-exp-bar/\{{spinalCase ctrl.codeName}}-tree-exp-bar-model.ts.hbs生成
import { ITreeExpBarModel } from "@/core";
function getModel(): ITreeExpBarModel {
    return {
        name: "{{ctrl.name}}",
        caption: "{{ctrl.caption}}",
        codeName: "{{ctrl.codeName}}",
        cssName: "{{#if ctrl.psSysCss}}{{ctrl.psSysCss.cssName}}{{/if}}",
        controlType: "{{ctrl.controlType}}",
        showTitleBar: {{ctrl.showTitleBar}},
        title: "{{ctrl.title}}",
        enableSearch: {{ctrl.enableSearch}},
        entityCodeName: '{{ctrl.psAppDataEntity.codeName}}',          
        {{#if ctrl.xDataControlName}}
        xDataCtrlName: '{{ctrl.xDataControlName}}',
        {{/if}}
        lanResTag: "{{ctrl.titlePSLanguageRes.lanResTag}}",
        {{#ctrl.ctrls}}
        {{#eq controlType 'TOOLBAR'}}
        toolbarItems: [
            {{> @macro/widgets/toolbar/toolbar-item.hbs items=psDEToolbarItems view=ctrl toolbar=this}}
        ]
        {{/eq}}
        {{/ctrl.ctrls}}
    }
}
export const model = getModel();